package com.theone.module.demo.convert.testone;

import java.util.*;

import com.theone.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.theone.module.demo.controller.admin.testone.vo.*;
import com.theone.module.demo.dal.dataobject.testone.TestOneDO;

/**
 * 第一个测试 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface TestOneConvert {

    TestOneConvert INSTANCE = Mappers.getMapper(TestOneConvert.class);

    TestOneDO convert(TestOneCreateReqVO bean);

    TestOneDO convert(TestOneUpdateReqVO bean);

    TestOneRespVO convert(TestOneDO bean);

    List<TestOneRespVO> convertList(List<TestOneDO> list);

    PageResult<TestOneRespVO> convertPage(PageResult<TestOneDO> page);

    List<TestOneExcelVO> convertList02(List<TestOneDO> list);

}
